
window.onload = function() {
    const shopName = localStorage.getItem("shopName");
    const totmoney = localStorage.getItem("money");
    document.getElementById("shop-name-in-check").innerHTML = shopName;
    document.getElementById("ttmoney").innerHTML="合计￥"+totmoney;

    const tans_to_pay_bt = document.querySelectorAll('.pay-right');
    tans_to_pay_bt.forEach((button) => {
        button.onclick = function() {
            window.location.href = "pay.html";
        };
    });
};